﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.Data.Models.Box;

namespace ZHDJ.Data.Mapping.Box
{
   public class PortalMenuMap : EntityTypeConfiguration<PortalMenu>
    {
        public PortalMenuMap()
        {
           this.HasOptional(m => m.Parent)
           .WithMany(m => m.Children)
           .Map(x => x.MapKey("ParentID"));
        }
    }
}
